﻿@model IList<PositionDTO>

@{
    ViewBag.Title = "Positions";
    Layout = "~/Views/Shared/_Layout.cshtml";
}

<h2>
    Positions
</h2>

@(Html.Kendo().Grid(Model)
    .Name("Positions")
    .Columns(col =>
    {
        col.Bound(x => x.InsertDate);
        col.Bound(x => x.Latitude);
        col.Bound(x => x.Longitude);
        col.Bound(x => x.Address1);
        col.Bound(x => x.City);
        col.Bound(x => x.State);
        col.Bound(x => x.Zip);
    })
    .DataSource(data =>
    {
        data.Ajax()
            .Model(m => m.Id(x => x.ID))
            .Read(r => r.Action("Read", "Home"))
            .ServerOperation(false);
    })
    .Filterable()
    .Groupable()
    .Pageable()
    .Sortable()
)
